package com.lingxu.base.system.dict.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lingxu.base.common.api.param.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 字典-节假日
 * @Author: 朱家池
 * @Date:   2023-04-18
 * @Version: V1.0.1
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="字典-节假日", description="字典-节假日")
public class HolidayReq extends Request {


    /**节日名称*/
    @ApiModelProperty(value = "节日名称")
    private String festival;
    /**放假日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "放假开始日期")
    private Date startDate;
    /**放假日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "放假结束日期")
    private Date endDate;
    /**所在年份*/
    @ApiModelProperty(value = "所在年份")
    private String year;

}
